package com.parsec.sb.pattern.observer;

import cn.hutool.json.JSONObject;

import java.util.Observable;
import java.util.Observer;

public class CObserver implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        System.out.println("接收到数据：" + new JSONObject(arg));
        System.out.println("CObserver 修改C表数据");
    }
}
